#ifndef __COREHOOK_MLDE32_MLDE32_H__
#define __COREHOOK_MLDE32_MLDE32_H__

namespace core
{
	extern "C" size_t __cdecl mlde32(void *codeptr);

	struct dis_engine
	{
		static size_t GetCoverCodeSize(void* code, size_t cover_size)
		{
			size_t cover_len = 0;
			while (cover_len < cover_size)
				cover_len += mlde32(reinterpret_cast<unsigned char*>(code) + cover_len);
			return cover_len;
		}
	};
}// namespace core

#pragma comment(lib, "mlde32.lib")

#endif//__COREHOOK_MLDE32_MLDE32_H__